package dao;

import local.Adherant;

public class AdherantsDAO {

	private Adherant [] AdherantsDAO  = 
		{
		
		new Adherant("BOULBI","KINCHASSA",7),
		new Adherant("BOULBO","KINCHASSA",5),
		new Adherant("BOULBETTE","KINCHASETTE",4),
		new Adherant("BILBOU","KOUKOU",3),
		new Adherant("BB","BOUBOU",6),
		new Adherant("YUYU","HAKUSHO",2),
		new Adherant("NUNU","NENE",1),
		
		
		

	};
	
	
	public  Adherant findByKey(int id){

		for(Adherant adherant : AdherantsDAO)
		{
			if(adherant.getIdUtilisateur() == id)
			{
				return adherant;
			}
		}
			
		return null;
		}
		
}

